<template>
    <el-card shadow="never">
        <userView :config="config"></userView>
    </el-card>
</template>
<script setup>
import userView from "@/components/goodsView.vue"
import http from "@/api/build"
console.log(http.usersOne)
const config = {
    API: {
        get: http.get_commodity,
        edit: http.put_commodity,
        add: http.post_commodity,
        listApi: http.list,
    },
    data: [
        {
            field: "company_name",
            label: "物流所属公司",
            operate: true
        },
        {
            field: "logistics_number",
            label: "物流号",
            query: true,
        },
        {
            field: "commodity_name",
            label: "商品名称",
        },
        {
            field: "real_count",
            label: "实际数量",
            required: true
        },
        {
            field: "theory_count",
            label: "理论数量",
            type: "number",
            operate: true
        },
        {
            field: "is_issue",
            label: "是否有问题",
            type: "select",
            options: [{label: '否', value: 0}, {label: '是', value: 1}]
        },
        {
            field: "commodity_images",
            label: "图片列表",
            type: "image",
            operate: true
        },
        {
            field: "is_used",
            label: "是否使用过",
            type: "select",
            options: [{label: '否', value: 0}, {label: '是', value: 1}]
        },
        {
            field: "model_type",
            label: "模式",
            type: "select",
            options: [{label: '自编模式', value: 2}, {label: '读取模式', value: 1}]
        },
        {
            field: "is_back",
            label: "是否打回",
            type: "select",
            operate: true,
            options: [{label: '否', value: 0}, {label: '是', value: 1}]
        },
        {
            field: "arrive_time",
            label: "到货时间",
        },
        {
            field: "is_ok",
            label: "是否验收完成",
            type: "select",
            operate: true,
            options: [{label: '否', value: 0}, {label: '是', value: 1}]
        },
        {
            field: "company_name",
            label: "物流公司名称",
        },
    ],
    dataVip: [
       {
            field: "account",
            label: "账号",
           operate: true,
        },
        {
            field: "password",
            label: "密码",
           operate: true,
        }
    ]
}

</script>
<style scoped></style>